﻿using Gj;
using NaughtyAttributes;
using UnityEngine;

public class FixViewSize : NodeSize
{
    public Camera camera;
    public bool main;

    [Slider(0.1f, 1f)] public float ratio = 1;

    public int width;
    public int height;

    protected override void OnRefresh(float rw, float rh, float w, float h, float s)
    {
        if (main) SystemInput.view = camera.fieldOfView;
    }
}